#!/bin/bash

source /opt/ros/foxy/setup.bash
source /home/nvidia/ros2_ws/install/setup.bash
sleep 1
#sudo chmod 777 /dev/ttyTHS0
#mavros
ros2 launch mavros px4.launch &


sleep 8
#fcu_comm
ros2 launch fcu_comm fcu_comm.launch & 


sleep 5
#new_cluster
ros2 run new_cluster Cluster_formation_control_node_new &

#yolov5
ros2 run trace_topic yolo_sort_object_pub &

#DDS2ROS
sleep 5
cd ~/ros2_ws/install/dds2ros

./DDS2ROS &

sleep 5

#behavior
cd ~/ros2_ws
ros2 run behavior-process behavior-node &


#q10
ros2 launch q10f_pkg q10f.launch &

#vision_locate
ros2 launch fcu_comm vision_locate.launch &

#follow_attack
#ros2 launch fcu_comm follow_attack.launch &

#video
ros2 launch video_distribution video_distribution.launch.py &



#sleep 5

#gnome-terminal -- bash -c "source /opt/ros/foxy/setup.bash; source ~/ros2_ws/install/setup.bash;  bash $basepath/check_restart.sh;"





